package com.tledu.service.impl;

import com.tledu.dao.IUserDao;
import com.tledu.dao.impl.UserDaoImpl;
import com.tledu.model.User;
import com.tledu.service.IUserService;
import lombok.Getter;
import lombok.Setter;

/**
 * @author cyrus
 */
public class UserServiceImpl implements IUserService {
    private IUserDao userDao;

    public IUserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(IUserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public int insert(User user) {
        // 根据数据做一些处理
        userDao.insert(user);
        return 0;
    }
}
